package com.guaoran.newsdata.provider;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.cloud.netflix.hystrix.EnableHystrix;
import org.springframework.transaction.annotation.EnableTransactionManagement;

/**
 * @author : gucheng
 * @Description : <br/>
 *  provider
 * @date :2018/12/9 12:23
 */
// 如果引用了 `swagger-ui-spring-boot-starter` 依赖，但是并没有开启配置，则需要排除 security 自动装配的工能
//@SpringBootApplication(exclude={SecurityAutoConfiguration.class, SecurityFilterAutoConfiguration.class, ManagementWebSecurityAutoConfiguration.class})
@SpringBootApplication
@EnableEurekaClient //激活 eureka 客户端
@EnableHystrix //激活 hystrix
@EnableTransactionManagement(proxyTargetClass = true) //jpa
public class NewsDataProviderApplication {

    public static void main(String[] args) {
        SpringApplication.run(NewsDataProviderApplication.class, args);
    }

}
